﻿using System.Net;

namespace ProxyFinder {

    /// <summary>
    /// This interface provides UI based credential provider that should enable
    /// the user to see some sort of an interface to provider credentials.
    /// </summary>
    public interface IWindowsCredentialProvider : ICredentialProvider {
        /// <summary>
        /// Prompt the user for credentials based on the set of provided arguments.
        /// </summary>
        /// <param name="target">The key for which to retrieve credentials for.</param>
        /// <param name="forcePrompt">Should the UI be forced to show even if the credentials are saved
        /// and can be returned without requiring user interaction
        /// </param>
        /// <returns></returns>
        ICredentials PromptForCredentials(string target, bool forcePrompt);
    }
}
